package com.jjs.jcenterdemo;

import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.white.commonlib.manager.LogManager;

public class HandlerActivity extends AppCompatActivity
{
    HandlerThread  d1;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_handler);
        d1 = new HandlerThread("asd");
        d1.start();
    }

    class SS extends Handler
    {
        public SS(Looper looper)
        {
            super(looper);
        }

        @Override
        public void handleMessage(Message msg)
        {
            super.handleMessage(msg);
            LogManager.e(Thread.currentThread().getName() + " : 处理消息");
        }
    }
}
